package top.hepingan.java.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.hepingan.java.entity.Comment;
import top.hepingan.java.entity.Forum;
import top.hepingan.java.vo.CommentVo;
import top.hepingan.java.vo.ForumVo;

import java.util.List;

public interface ForumService extends IService<Forum> {

    List<ForumVo> pageBynum(Integer pageNum, String title, Long userId);

    void publish(ForumVo forumVo);

    List<CommentVo> getComment(Long id);

    String comment(Comment comment);

    void commentLike(Long id);

    List<ForumVo> pageMyLike(Integer pageNum);

    List<ForumVo> weeklyHot();

    List<ForumVo> monthlyHot();

    List<ForumVo> pageTotal(Integer pageNum, String title);
}
